#ifndef SPL_PARSING
#define SPL_PARSING

//! Copies a string from szSource to ',' or '\r' into szTarget
DLLEXPORT PTCHAR copyParam(PTSTR szTarget, PTSTR szSource);

//! Copies a string from szSource to szTarget and returns
//! the first uncopied character in szSource
DLLEXPORT PTCHAR copyString(PTSTR szTarget, PCTSTR szSource);

//! Checks if a string from szSource to ',' or '\r' corresponds to
//! szText and sets the last processed character in pLast if match
DLLEXPORT BOOL compareParam(PTSTR szSource, PCTSTR szText, PTCHAR *pLast);

//! Converts a formatted string (includes "\r", "\n", "\\", etc.)
//! from szIn to szEnd into an expanded string
// (with '\r' instead of "\r") starting at szOut
DLLEXPORT void stringFormat(PTSTR szOut, PCTSTR szIn, PCTCH szEnd);

#endif